package com.xbongbong.sys.model.impl;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.sys.domain.dao.MirrorVersionDao;
import com.xbongbong.sys.domain.entity.MirrorVersionEntity;
import com.xbongbong.sys.model.MirrorVersionModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 镜像版本
 * @author xingxing.xiao
 * @date 2019/11/25 17:27
 * @since v1.0
 * @version v1.0
 */
@Service("mirrorVersionModel")
public class MirrorVersionModelImpl implements MirrorVersionModel {

    @Resource
    private MirrorVersionDao mirrorVersionDao;

    @Override
    public Integer insert(MirrorVersionEntity entity) throws XbbException {
        return mirrorVersionDao.insert(entity);
    }

    @Override
    public Integer update(MirrorVersionEntity entity) throws XbbException {
        return mirrorVersionDao.update(entity);
    }

    @Override
    public List<MirrorVersionEntity> findEntitys(Map<String, Object> param) {
        return mirrorVersionDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return mirrorVersionDao.getEntitysCount(param);
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return null;
    }

    @Override
    public MirrorVersionEntity getMirrorVersion(Map<String, Object> param) {
        return mirrorVersionDao.getMirrorVersion(param);
    }
}
